<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">

<title>注册页面</title>

<!-- Bootstrap core CSS -->
<link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet">

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="<%=basePath%>css/ie10-viewport-bug-workaround.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="<%=basePath%>css/signin.css" rel="stylesheet">

<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="<%=basePath%>js/ie-emulation-modes-warning.js"></script>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<script language="javascript">
	function toVaild() {
		var passwd1 = document.getElementById("passwd1").value;
		var passwd2 = document.getElementById("passwd2").value;

		
		if (passwd1 != passwd2) {
			alert("两个输入密码的地方必须一样!");
			return false;
		}
		return true;

	}
</script>
</head>

<body>
	<nav class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">

				<a href="<%=basePath%>SigninServlet" class="navbar-brand">成绩查询</a>
			</div>
			<div class="navbar-collapse collapse" id="navbar">
				<ul class="nav navbar-nav">
					<li class="active"><a href="<%=basePath%>jsp/signin.jsp">登陆</a></li>
					<li><a href="<%=basePath%>jsp/regist.jsp">注册</a></li>
					<li><a href="http://www.shdc.org.cn/familyServices/index">上海市医院报告查询和门诊预约</a></li><li><a href='<%=basePath%>jsp/downrj.jsp'>下载仁济app</a></li>

				</ul>
			</div>
			<!--/.nav-collapse -->
		</div>
	</nav>
	<div class="container">

		<form class="form-signin" onsubmit="return toVaild()"
			action="<%=basePath%>SigninServlet" method="get">
			<h3 class="form-signin-heading">此处输入您的手机或者邮箱</h3>
			<input name="username" type="text" class="form-control"
				placeholder="手机或者邮箱" required autofocus>
			<h3 class="form-signin-heading">此处设定您的密码</h3>
			<input name="passwd1" type="password" id="passwd1"
				class="form-control" placeholder="Password" required>
			<h3 class="form-signin-heading">请重复输入您的密码</h3>
			<input name="passwd2" type="password" id="passwd2"
				class="form-control" placeholder="Password" required>

			<button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>

		</form>
		<p>${err}</p>
	</div>
	<!-- /container -->


	
	
</body>
</html>
